<template>
  <van-nav-bar
    v-if="!$route.meta.tabBar"
    :title="$route.meta.title"
    left-arrow
    :border="false"
    class="my-nav"
    @click-left="back"
  />
</template>

<script>
export default {
  name: 'myNav',
  props: {},
  data() {
    return {}
  },
  methods: {
    back() {
      this.$router.back()
    }
  }
}
</script>

<style lang="scss" scoped>
.my-nav {
  position: sticky;
  top: 0;
  z-index: 999;
}
:deep(.van-nav-bar__left .van-icon) {
  color: #1e1f20;
  font-size: 16px;
}
</style>
